#简单字典
print("\n#---------简单字典--------#")
alien_0 = {'color':'green','points':'5'}

print(alien_0['color'])
print(alien_0['points'])

print("\n#---------添加字典键-值对--------#")
alien_0['x_position'] = 0
alien_0['y_position'] = 25
print(alien_0)

print("\n#---------修改字典中的值--------#")
print("The alien is "+ alien_0['color']+".")

alien_0['color'] = 'yellow'
print("The alien color is now "+alien_0['color']+".")

print("\n#---------遍历字典--------#")
user_0 = {
		'username':'efermi',
		'first':'enrico',
		'last':'fermi'}
for key,value in user_0.items():
	print("\nKey: "+key)
	print("\nValue: "+value)
